﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using log4net;
using FJASPX.Service;
using NHibernate.Criterion;
using FJASPX.Framwork.UI;

namespace PlugNT.Cms.Web
{
    public partial class Search : HomePageBase
    {

        private static readonly ILog logger = LogManager.GetLogger(typeof(Supply));


        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public string ReplaceTitle(string title)
        {
            if (title != null)
            {
                if (!string.IsNullOrEmpty(Request.QueryString["key"]))
                {
                    string key = Request.QueryString["key"].ToString();
                    title = title.Replace(key, "<font color=\"#FF0000\">" + key + "</font>");
                }
                return title;
            }
            return string.Empty;
        }
    }
}